package ch9;

public class Zxf8 {
    public static void main(String[] args) {
        int[] a = {1, 2, 3, 4, 5, 6, 7};
        int[] b = {1, 2, 4, 3, 5, 6, 7};
        for (int i = 0; i < a.length;i++ ) {
            if (a[i] != b[i]) {
                //System.out.println("数组相同");
                System.out.println("数组不相同");
                return;
            }
        }System.out.println("数组相同");
    }
}
